/*
 * 太原科技大学。
 * Copyright 2021, YCHS Information&Science Technology Co.,Ltd,
 * All rights reserved.
 */
package com.example.demo.mapper;

import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author liuchao
 * @version 1.0
 * @date 2024/5/3
 */

@Mapper
public interface UserMapper {
    @Select("select *from user where username=#{username} and password=#{password}")
    User selectName(User user);

    @Insert("insert  into user(username, phone) VALUES(#{username},#{phone})")
    void register(User user);
}
